//
//  AdvertiseView.h
//  customer
//
//  Created by Holothurian on 2018/10/21.
//  Copyright © 2018年 yinlong. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

#define f_Ad_Content_W F_DEVICE_W
#define f_Ad_Content_H F_DEVICE_W/640.0*323
#define f_PageCtr_w     30
#define f_scroll_time   3

typedef NS_ENUM(NSInteger,AdvertiseFromType){
    AdvertiseFromLocal,
    AdvertiseFromNetwork
};

typedef void (^TBlock)(id item);
@interface AdvertiseView : UIView

/// 自动滚动: start  YES:开 NO:关
-(void)startAutoScroll:(BOOL)start;

-(void)refreshWithItem:(id)item FromType:(AdvertiseFromType)fromType CallBack:(TBlock)callBack;

@end

NS_ASSUME_NONNULL_END
